/* #project-categories div h2 {
  text-align: center;
} */

/* Project Categories Container */
#project-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
}

/* Project Card */
/* .project-card {
  background-color: #ffffff;
  width: 300px;
  margin: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s;
  border: 1.5px solid #0057a0;

  /* Flex layout to align button at bottom */
  /* display: flex; */
  /* flex-direction: column; */
  /* min-height: 420px; */
/* } */
.project-card {
  background-color: #ffffff;
  width: 300px;
  height: 460px; 
  margin: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s;
  border: 1.5px solid #0057a0;

  display: flex;
  flex-direction: column;
}


/* Hover move up */
.project-card:hover {
  transform: translateY(-5px);
}

/* Image styling */
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Content container */
.card-content {
  padding: 1rem;
  /* margin-top: -23px; */

  flex-grow: 1; /* Push button down */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Button Style */
.btn {
  display: inline-block;
  background-color: #0057a0;
  color: white;
  padding: 0.6rem 1.2rem;
  margin-top: 1rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
  align-self: flex-start;
}

.btn:hover {
  background-color: #3db3ff;
}

/* See More Button */
.seeMoreBtn {
  display: block;
  color: black;
  text-align: center;
  width: 10%;
  margin: auto;
  border-style: solid;
  border-color: #016bc2;
  border-radius: 30px;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.seeMoreBtn:hover {
  background-color: #016bc2;
  color: white;
  transition: background 0.3s;
  transform: scale(1.05);
}

/* Map container */
.map-container {
  position: relative;
  width: 60%;
  margin: 2rem auto;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =================== Responsive =================== */

/* Tablets (between 768px and 1024px) */
@media (max-width: 1024px) {
  #project-categories div {
    width: calc(33% - 10px);
  }
}

/* Small tablets and large phones (between 600px and 768px) */
@media (max-width: 768px) {
  #project-categories div {
    width: calc(48% - 10px);
  }

  .seeMoreBtn {
    width: 30%;
  }

  .project-card {
    min-height: 400px;
  }
}

/* Phones (below 480px) */
@media (max-width: 480px) {
  #project-categories div {
    width: 90%;
  }

  .seeMoreBtn {
    width: 40%;
  }

  .project-card {
    min-height: 380px;
  }
}


.card-content h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  max-height: 3.2em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  max-height: 4.5em;
  overflow: hidden;
  text-overflow: ellipsis;
}
